package com.okhttp.utils;

import com.okhttp.retrofit.RetrofitClient;

/**
 * @author YLG
 * @Datetime 2020/4/17-10:01 PM
 * @Version v1.0
 * @description
 */
public class RetrofitLog {
  
  
  public static void df(String tag,String formatMsg,Object... args){
    d(tag,String.format(formatMsg,args));
  }
  public static void d(String tag,String msg){
    if (RetrofitClient.getInstance().isDebug()) {
        //android.util.Log.d(tag,msg);
      System.out.println(">>> TAG="+tag+" MSG:"+msg+" <<<");
    }
  }

  public static void e(String tag, String s) {
    if(RetrofitClient.getInstance().isDebug()){
      //android.util.Log.e(tag, s);
      System.out.println(">>> TAG="+tag+" MSG:"+s+" <<<");
    }
  }
  
  public static void e(String tag, String message, Throwable t) {
    //android.util.Log.e(tag , message, t);
    System.out.println(">>> TAG="+tag+" MSG:"+message+" <<<");
  }
}
